﻿using System;
using System.Linq;
using System.Xml.Serialization;


namespace ForumsBrowser.DataObjects
{
    public class Forum
    {
        [XmlAttribute("id")]
        public Guid Id { get; set; }

        [XmlAttribute("name")]
        public string ShortName { get; set; }

        [XmlAttribute("type")]
        public string Type { get; set; }

        [XmlAttribute("locked")]
        public bool Locked { get; set; }

        [XmlAttribute("threads")]
        public int ThreadCount { get; set; }

        [XmlAttribute("messages")]
        public int MessageCount { get; set; }

        [XmlAttribute("unanswered")]
        public int Unanswered { get; set; }

        [XmlAttribute("answered")]
        public int Answered { get; set; }

        [XmlElement("displayName")]
        public string DisplayName { get; set; }

        [XmlElement("description")]
        public string Description { get; set; }

        [XmlElement("url")]
        public string Url { get; set; }
    }
}
